package com.sifang.controller;

import com.sifang.domain.Result;
import com.sifang.domain.Skill;
import com.sifang.service.ISkillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/skill")
public class SkillController {

    @Autowired
    private ISkillService iSkillService;

    //机甲技能
    @GetMapping
    public Result<Skill> list(Integer id){
        Skill s = iSkillService.list(id);
        return Result.success(s);
    }
}
